import request from '../utils/request';

// 获取用户列表
export const getUserService = (UserPageQueryReqDTO) => {
    return request.get('/Treasure-Pavilion-admin/user/page', 
        { params: UserPageQueryReqDTO }
    );
};

// 删除指定用户
export const deleteUserService = (userId) => {
    // 使用模板字符串将 userId 嵌入到请求路径中
    return request.post(`/Treasure-Pavilion-admin/user/delete/${userId}`);
};